﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wolfy.NetDisk.Core.Service
{
    /// <summary>
    /// 图片管理接口
    /// </summary>
    public interface IImageManagerService
    {
        /// <summary>
        /// 压缩图片
        /// </summary>
        /// <param name="savePath">图片保存路径</param>
        /// <param name="stream">流</param>
        /// <param name="width">压缩的宽度</param>
        /// <param name="height">压缩的高度</param>
        void CompressImage(string savePath, Stream stream, int width, int height);
        /// <summary>
        /// 创建验证码
        /// </summary>
        /// <param name="len"></param>
        /// <param name="strCode"></param>
        /// <returns></returns>
        byte[] CreateVerifyCode(int len, out string strCode);
    }
}
